package com.only4play.practice.message;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScans;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

/**
 * @author mdy
 * * @date 2024/9/19
 */
@SpringBootApplication
@Slf4j
@MapperScans(
        {
                @MapperScan("com.only4play.practice.message.core.mapper")

        }
)
@ComponentScans({
        // 扫描自定义异常，不然不生效
        @ComponentScan(basePackages = "com.only4play.practice.common.exception"),
        // 扫描自定义配置类，不然不生效
        @ComponentScan(basePackages = "com.only4play.practice.common.config"),
        @ComponentScan(basePackages = "com.only4play.practice.common.properties")

})
public class MessageCoreApp {
        public static void main(String[] args) {
                SpringApplication.run(MessageCoreApp.class, args);
                log.info("MessageCoreApp start");
        }
}
